﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>导入</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../Layui/css/layui.css" media="all">
</head>
<body>
    <form class="layui-form" action="">

        <div>
            <div class="layui-card" style=" padding-left:10px; margin-top:10px; margin-bottom:10px;">
                <div class="layui-inline">
                    <button data-method="offset" data-type="test19" class="layui-btn layui-btn-normal " data-content="Disadd.html">　　全部领取　　</button>
                    <button data-method="offset" data-type="test19" class="layui-btn layui-btn-normal " data-content="Disadd.html">　　全部退回　　</button>
                    <div class="layui-input-inline">
                        <input type="text" name="title" lay-verify="title" placeholder="请输入内容进行模糊查询" class="layui-input">
                    </div>
                    <button class="layui-btn"><i class="layui-icon">&#xe615;</i></button>
                    <span style="color:#FF5722">注意： 未领取将在48小后退回</span>
                </div>
            </div>
        </div>
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">待领取</li>
                <li>已领取</li>

            </ul>
            <div class="layui-card-body">

                <table class="layui-table" lay-skin="line" lay-data="{ url:'/Sys/Grant/Data?', page:true, id:'idTest',height: 'full-250', cellMinWidth: 120,}" lay-filter="demo">
                    <thead>
                        <tr>


                            <th lay-data="{field:'ChildName'}">宝宝小名</th>
                            <th lay-data="{field:CustName'}">宝宝姓名</th>
                            <th lay-data="{field:'BirdDate', sort: true}">月龄</th>
                            <th lay-data="{field:'LinkName'}">家长姓名</th>
                            <th lay-data="{field:'CustTel'}">联系电话</th>
                            <th lay-data="{field:'state', sort: true}">状态</th>
                            <th lay-data="{field:'Remark',  sort: true, fixed: true}">分配次数</th>
                            <th lay-data="{field:'CustFrom', sort: true}">最近分配时间</th>
                            <th lay-data="{field:'CustFrom', sort: true}">剩余时间</th>
                            <th lay-data="{field:'createdate', sort: true}">创建时间</th>
                            <th lay-data="{field:'CustFrom', sort: true}">渠道来源</th>
                            <th lay-data="{field:'CusFromRemark' }">渠道备注</th>
                            <th lay-data="{field:'state', sort: true}">状态</th>
                            <th lay-data="{field:'CustFrom', sort: true}">所属顾问</th>
                            <th lay-data="{ width:178, align:'center', toolbar: '#barDemo'}">操作</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>

    </form>
    <script src="../Layui/layui.js"></script>

    <script>
        layui.config({
            base: '../Layui/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');
    </script>
    <script>
        //Demo
        layui.use('form', function () {
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function (data) {
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });
    </script>
    <script>
        //注意进度条依赖 element 模块，否则无法进行正常渲染和功能性操作
        layui.use('element', function () {
            var element = layui.element;
        });
    </script>

    <script>
        layui.use('table', function () {
            var table = layui.table;
            //监听工具条
            table.on('tool(demo)', function (obj) {
                var data = obj.data;
                if (obj.event === 'detail') {
                    layer.msg('ID：' + data.id + ' 的查看操作');
                } else if (obj.event === 'del') {
                    layer.confirm('真的删除行么', function (index) {
                        obj.del();
                        layer.close(index);
                    });
                } else if (obj.event === 'edit') {
                    layer.alert('编辑行：<br>' + JSON.stringify(data))
                }
            });

        });
    </script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script>
        layui.use('layer', function () { //独立版的layer无需执行这一句
            var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句

            //触发事件
            var active = {
                test19: function () {
                    top.layer.open({
                        type: 2,
                        title: '批量分配顾问',
                        area: ['500px', '700px'],
                        content: 'disadd.html'

                    });
                }


            };

            $('.layui-btn').on('click', function () {
                var type = $(this).data('type');
                active[type] && active[type].call(this);
            });


        });
    </script>
</body>
</html>